<html>
<?
  int i;

  if(cgiLoadVars(cgi))
  {
      CGIVars *cgiVars;
?>
<div>GET:</div>
<?
      cgiVars = cgi->varsGet;
      for(i=0;i<cgiVars->nvars;i++)
      {
?>
        <div>Name: <?cgiPrintPChar(cgi,cgiVars->vars[i].name);?> Value: <?cgiPrintPChar(cgi,cgiVars->vars[i].values[0]);?></div>
<?
      }
?>
<div>POST:</div>
<?
      cgiVars = cgi->varsPost;
      for(i=0;i<cgiVars->nvars;i++)
      {
?>
        <div>Name: <?cgiPrintPChar(cgi,cgiVars->vars[i].name);?> Value: <?cgiPrintPChar(cgi,cgiVars->vars[i].values[0]);?></div>
<?
      }
  }
?>


<?
  for(i=0; i<10; i++)
  { 
?>
    <div id="<? cgiPrintInt(cgi,i); ?>">
        <?cgiPrintf(cgi,"Teste"); cgiPrintInt(cgi,i);?>
    </div>
<? 
  } 
?>

</html>
